package com.dragon.modules.yuegou.model.lot;

import com.dragon.modules.yuegou.entity.lot.ActivityEntity;
import com.dragon.modules.yuegou.enums.lot.ActivityProcessStatus;
import com.dragon.modules.yuegou.enums.lot.ActivityPublishStatus;
import com.dragon.modules.yuegou.enums.lot.ParticipationStatus;
import com.dragon.modules.yuegou.model.merchant.Merchant;
import com.dragon.modules.yuegou.model.product.Spu;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 抽奖活动表模型类
 * 
 * @author pbuilder generated
 * @date 2019-10-24 10:22:54
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Activity extends ActivityEntity {

	@ApiModelProperty("会员参与数量")
	private Integer memberNum;
	
	@ApiModelProperty("会员参与状态")
	private ParticipationStatus participationStatus;
	
	@ApiModelProperty("更多活动列表")
	private List<Activity> activitys;
	
	@ApiModelProperty("会员奖券列表")
	private List<MemberTicket> memberTickets;
	
	@ApiModelProperty("中奖劵列表")
	private List<MemberTicket> winningMemberTickets;
	
	@ApiModelProperty("参与会员信息")
	private List<ActivityJoin> activityJoins;
	
	@ApiModelProperty("会员参与信息")
	private ActivityJoin activityJoin;
	
	@ApiModelProperty("商品信息")
	private Spu spu;
	
	@ApiModelProperty("商户信息")
	private Merchant merchant;

	@ApiModelProperty("商户信息")
	private List<Merchant> merchantList;

	@ApiModelProperty("商户信息")
	private String merchantNames;

	@ApiModelProperty("是否中奖")
	private Boolean isPrize;
	
	@ApiModelProperty("商户名称")
	private String merchantName;
	
	@ApiModelProperty("奖品spuId")
	private String spuId;
	
	@ApiModelProperty("奖品信息")
	private Prize prize;
	
	@ApiModelProperty("当前时间")
	private Long currentTime;
	

	public Long getCurrentTime() {
		return currentTime;
	}

	public void setCurrentTime(Long currentTime) {
		this.currentTime = currentTime;
	}
	
	public String getMerchantName() {
		return merchantName;
	}

	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}
	
	public ActivityJoin getActivityJoin() {
		return activityJoin;
	}

	public void setActivityJoin(ActivityJoin activityJoin) {
		this.activityJoin = activityJoin;
	}

	public Boolean getIsPrize() {
		return isPrize;
	}

	public void setIsPrize(Boolean isPrize) {
		this.isPrize = isPrize;
	}

	public String getSpuId() {
		return spuId;
	}

	public void setSpuId(String spuId) {
		this.spuId = spuId;
	}

	public Prize getPrize() {
		return prize;
	}

	public void setPrize(Prize prize) {
		this.prize = prize;
	}

	public ParticipationStatus getParticipationStatus() {
		return participationStatus;
	}

	public void setParticipationStatus(ParticipationStatus participationStatus) {
		this.participationStatus = participationStatus;
	}

	public List<MemberTicket> getWinningMemberTickets() {
		return winningMemberTickets;
	}

	public void setWinningMemberTickets(List<MemberTicket> winningMemberTickets) {
		this.winningMemberTickets = winningMemberTickets;
	}

	public Merchant getMerchant() {
		return merchant;
	}

	public void setMerchant(Merchant merchant) {
		this.merchant = merchant;
	}

	public List<Merchant> getMerchantList() {
		return merchantList;
	}

	public void setMerchantList(List<Merchant> merchantList) {
		this.merchantList = merchantList;
	}

	public String getMerchantNames() {
		return merchantNames;
	}

	public void setMerchantNames(String merchantNames) {
		this.merchantNames = merchantNames;
	}

	public List<Activity> getActivitys() {
		return activitys;
	}

	public void setActivitys(List<Activity> activitys) {
		this.activitys = activitys;
	}

	public List<MemberTicket> getMemberTickets() {
		return memberTickets;
	}

	public void setMemberTickets(List<MemberTicket> memberTickets) {
		this.memberTickets = memberTickets;
	}

	public List<ActivityJoin> getActivityJoins() {
		return activityJoins;
	}

	public void setActivityJoins(List<ActivityJoin> activityJoins) {
		this.activityJoins = activityJoins;
	}

	public Spu getSpu() {
		return spu;
	}

	public void setSpu(Spu spu) {
		this.spu = spu;
	}

	public Integer getMemberNum() {
		return memberNum;
	}

	public void setMemberNum(Integer memberNum) {
		this.memberNum = memberNum;
	}

	/**
	 * 构造一个空抽奖活动表模型对象
	 */
	public Activity(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个抽奖活动表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Activity(ActivityEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个抽奖活动表模型对象
	 * 
	 * @param other 其它对象
	 */
	public Activity(Activity other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public Activity id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public Activity busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getName() {
    	return name;
    }

    /**
	 * 设置活动名称
	 * 
	 * @param name 活动名称
	 * @return 当前对象
	 */
    public Activity name(String name) {
    	this.name = name;
    	return this;
    }

	@Override
	public String getMerchantId() {
    	return merchantId;
    }

    /**
	 * 设置商家ID
	 * 
	 * @param merchantId 商家ID
	 * @return 当前对象
	 */
    public Activity merchantId(String merchantId) {
    	this.merchantId = merchantId;
    	return this;
    }

	@Override
	public String getImage() {
    	return image;
    }

    /**
	 * 设置活动图片
	 * 
	 * @param image 活动图片
	 * @return 当前对象
	 */
    public Activity image(String image) {
    	this.image = image;
    	return this;
    }

	@Override
	public String getSkuId() {
    	return skuId;
    }

    /**
	 * 设置奖品id
	 * 
	 * @param skuId 奖品id
	 * @return 当前对象
	 */
    public Activity skuId(String skuId) {
    	this.skuId = skuId;
    	return this;
    }

	@Override
	public String getSkuName() {
    	return skuName;
    }

    /**
	 * 设置奖品名称
	 * 
	 * @param skuName 奖品名称
	 * @return 当前对象
	 */
    public Activity skuName(String skuName) {
    	this.skuName = skuName;
    	return this;
    }

	@Override
	public BigDecimal getPrice() {
    	return price;
    }

    /**
	 * 设置奖品价值
	 * 
	 * @param price 奖品价值
	 * @return 当前对象
	 */
    public Activity price(BigDecimal price) {
    	this.price = price;
    	return this;
    }

	@Override
	public Integer getAwardNum() {
    	return awardNum;
    }

    /**
	 * 设置获奖人数
	 * 
	 * @param awardNum 获奖人数
	 * @return 当前对象
	 */
    public Activity awardNum(Integer awardNum) {
    	this.awardNum = awardNum;
    	return this;
    }
    
    @Override
	public String getRule() {
    	return rule;
    }

    /**
	 * 设置活动规则
	 * 
	 * @param rule 活动规则
	 * @return 当前对象
	 */
    public Activity rule(String rule) {
    	this.rule = rule;
    	return this;
    }

	@Override
	public Integer getUserJoinMaxNum() {
    	return userJoinMaxNum;
    }

    /**
	 * 设置用户单日最高获取奖券数量
	 * 
	 * @param userJoinMaxNum 用户单日最高获取奖券数量
	 * @return 当前对象
	 */
    public Activity userJoinMaxNum(Integer userJoinMaxNum) {
    	this.userJoinMaxNum = userJoinMaxNum;
    	return this;
    }

	@Override
	public LocalDateTime getJoinBeginTime() {
    	return joinBeginTime;
    }

    /**
	 * 设置报名开始时间
	 * 
	 * @param joinBeginTime 报名开始时间
	 * @return 当前对象
	 */
    public Activity joinBeginTime(LocalDateTime joinBeginTime) {
    	this.joinBeginTime = joinBeginTime;
    	return this;
    }

	@Override
	public LocalDateTime getJoinEndTime() {
    	return joinEndTime;
    }

    /**
	 * 设置报名结束时间
	 * 
	 * @param joinEndTime 报名结束时间
	 * @return 当前对象
	 */
    public Activity joinEndTime(LocalDateTime joinEndTime) {
    	this.joinEndTime = joinEndTime;
    	return this;
    }

	@Override
	public LocalDateTime getDrawBeginTime() {
    	return drawBeginTime;
    }

    /**
	 * 设置开奖时间 精确到小时
	 * 
	 * @param drawBeginTime 开奖时间 精确到小时
	 * @return 当前对象
	 */
    public Activity drawBeginTime(LocalDateTime drawBeginTime) {
    	this.drawBeginTime = drawBeginTime;
    	return this;
    }

	@Override
	public LocalDateTime getDrawEndTime() {
    	return drawEndTime;
    }

    /**
	 * 设置开奖结束时间 开奖当天的结束时间
	 * 
	 * @param drawEndTime 开奖结束时间 开奖当天的结束时间
	 * @return 当前对象
	 */
    public Activity drawEndTime(LocalDateTime drawEndTime) {
    	this.drawEndTime = drawEndTime;
    	return this;
    }

	@Override
	public Boolean getIsDraw() {
    	return isDraw;
    }

    /**
	 * 设置是否开奖：0-未开奖；1-已开奖
	 * 
	 * @param isDraw 是否开奖：0-未开奖；1-已开奖
	 * @return 当前对象
	 */
    public Activity isDraw(Boolean isDraw) {
    	this.isDraw = isDraw;
    	return this;
    }

	@Override
	public ActivityProcessStatus getProcessStatus() {
    	return processStatus;
    }

    /**
	 * 设置[枚举]活动进行状态：0-进行中-PROCESSIONG、1-即将开始-ABOUT_START、2-已结束-OVER
	 * 
	 * @param processStatus [枚举]活动进行状态：0-进行中-PROCESSIONG、1-即将开始-ABOUT_START、2-已结束-OVER
	 * @return 当前对象
	 */
    public Activity processStatus(ActivityProcessStatus processStatus) {
    	this.processStatus = processStatus;
    	return this;
    }

	@Override
	public ActivityPublishStatus getPublishStatus() {
    	return publishStatus;
    }

    /**
	 * 设置[枚举]上架状态：0-下架-LOWER、1-上架-UPPER
	 * 
	 * @param publishStatus [枚举]上架状态：0-下架-LOWER、1-上架-UPPER
	 * @return 当前对象
	 */
    public Activity publishStatus(ActivityPublishStatus publishStatus) {
    	this.publishStatus = publishStatus;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人ID
	 * 
	 * @param createdBy 创建人ID
	 * @return 当前对象
	 */
    public Activity createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public Activity createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置更新人ID
	 * 
	 * @param modifiedBy 更新人ID
	 * @return 当前对象
	 */
    public Activity modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置更新时间
	 * 
	 * @param modifiedTime 更新时间
	 * @return 当前对象
	 */
    public Activity modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }
}
